package com.woniuxy.stage3demo.controller;

import com.woniuxy.stage3demo.bean.ResultMsg;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/systemmag")
public class SystemController {

    /**
     * 登录方法
     * @param loginName
     * @param password
     * @return
     */
    @RequestMapping(value="/login",produces = {"application/json;charset=utf-8"})
    public ResultMsg login(String loginName, String password){
        ResultMsg rm = new ResultMsg(200,"登录成功",null);
        System.out.println(loginName+"----"+password);
        return rm;
    }
}
